//
//  OssUpload.h
//  KangarooDoctor
//
//  Created by 廖罡 on 2024/2/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ApiCallback)(id _Nullable result, NSString * _Nullable err);

@interface OssUpload : NSObject

+(void)uploadWithUrl:(NSString*)urlString
         accessKey:(NSString*)accessKey
            policy:(NSString*)policy
            signature:(NSString*)signature
            expire:(NSString*)expire
               dir:(NSString*)dir
                data:(NSData*)data
            callback:(ApiCallback)callback;

@end

NS_ASSUME_NONNULL_END
